package src.lab02.test04;

/**
 * Created by 林云志 on 2017/10/14.
 */
public class Test04 extends Worker{
    public static void main(String[] args) {
        Worker worker = new Worker();
        worker.name = worker.getName();
        worker.number = worker.getNumber();
        worker.salary = worker.getSalary();
        System.out.println("姓名："+worker.name);
        System.out.println("工号："+worker.number);
        System.out.println("基本薪水："+worker.salary);
        worker.pay = worker.pay();
        worker.addsalary = worker.Addsalary();
        System.out.println("薪水增长额："+worker.addsalary);
        System.out.println("工资总额："+worker.pay);

    }
}
